#ifndef HICORE_H
#define HICORE_H
#include <assert.h>
#include <stdlib.h>

#define hi_deletep(p)			{ if(p) { delete (p); (p)=NULL; } }
#define hi_freep(p)			{ if(p) { free (p); (p)=NULL; } }

#define hi_max(a,b)            (((a) > (b)) ? (a) : (b))
#define hi_min(a,b)            (((a) < (b)) ? (a) : (b))

#define hi_assert(expression) assert(expression)

#endif // HICORE_H
